package com.itheima.a03mybufferedstream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedStreamDemo3 {
    public static void main(String[] args) throws IOException {
        //熟悉字符缓冲输出流

        //创建对象
        BufferedWriter bw=new BufferedWriter(new FileWriter("myio\\cc.txt",true));

        //输出
        bw.write("hhhh数1你不加班吧1u君不见");
        //换行
        bw.newLine();

        bw.write("zhe这里");

        //关流
        bw.close();
    }

}
